package com.tbit.uqbike.object.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * @author LMY
 * @create 2020-11-16 10:36
 * 资产预警开关
 */
@Data
public class MachineAlarm implements Serializable {
    private static final long serialVersionUID = -9117604050022208976L;
    /**
     * 运营区域id
     */
    private Integer accountId;
    /**
     * 预警号码
     */
    private String alarmPhone;
    /**
     * 超区告警开关
     */
    private Integer geoAlarmSwitch;
    /**
     * 闲置告警开关
     */
    private Integer idleAlarmSwitch;
    /**
     * 闲置时间
     */
    private Integer idleAlarmTime;
    /**
     * 断电告警开关
     */
    private Integer powerAlarmSwitch;
    /**
     * 无信号告警开关
     */
    private Integer offlineAlarmSwitch;
    /**
     * 无信号时间
     */
    private Integer offlineAlarmTime;
    /**
     * 无定位告警开关
     */
    private Integer locationAlarmSwitch;
    /**
     * 无定位时间
     */
    private Integer locationAlarmTime;
    /**
     * 非法移动告警开关
     */
    private Integer illegalityMoveSwitch;
    /**
     * 丢失车辆开关
     */
    private Integer machineLoseSwitch;
    /**
     * 备注
     */
    private String remark;
    /**
     * 运营区域id
     */
    private String name;
    /**
     * 未关电池锁告警开关
     */
    private Integer batterLockSwitch;
    /**
     * 倾倒，侧翻告警开关
     */
    private Integer rolloverSwitch;
    /**
     * 摄像头故障告警开关
     */
    private Integer cameraSwitch;
    /**
     * 摄像头遮挡告警开关
     */
    private Integer cameraCoverSwitch;
    /**
     * 高速出界告警开关
     */
    private Integer geoOutBoundsSwitch;
    /**
     * 高速出界告警速度 km/s
     */
    private Integer geoOutSpeed;

    /**
     * 超长订单预警开关
     * */
    private Integer longOrderSwitch;

    /**
     * 超长订单预警阈值
     * */
    private Integer longOrderTime;

    public MachineAlarm(Integer accountId, String name) {
        this.accountId = accountId;
        this.geoAlarmSwitch = 1;
        this.alarmPhone = "";
        this.powerAlarmSwitch = 1;
        this.batterLockSwitch = 0;
        this.rolloverSwitch = 1;
        this.offlineAlarmSwitch = 1;
        this.offlineAlarmTime = 30;
        this.idleAlarmSwitch = 0;
        this.idleAlarmTime = 24;
        this.locationAlarmSwitch = 0;
        this.locationAlarmTime = 24;
        this.illegalityMoveSwitch = 1;
        this.machineLoseSwitch = 1;
        this.cameraSwitch = 1;
        this.cameraCoverSwitch = 1;
        this.name = name;
        this.geoOutBoundsSwitch = 1;
        this.geoOutSpeed = 40;
        this.longOrderSwitch = 0;
        this.longOrderTime = 12;
    }

}
